from django.shortcuts import render
from django.http import HttpResponse
from .tasks import Celery


def Celery1(request):
    # 如果celery函数有参数，可通过delay()传递
    Celery.delay()

    return HttpResponse("恭喜您，已成功返回响应")